<template>
  <el-descriptions :title="props.title" :column="1" size="large">
    <el-descriptions-item label="捕捉灵敏度/发现距离">{{
      sourceObject.testDescriptionInfoVO?.detectionRange
    }}</el-descriptions-item>
    <el-descriptions-item label="角度跟踪范围及精度">
      {{ sourceObject.testDescriptionInfoVO?.angleTrackingRange }}
    </el-descriptions-item>
    <el-descriptions-item label="速度跟踪范围及精度">
      {{ sourceObject.testDescriptionInfoVO?.speedTrackingRange }}
    </el-descriptions-item>
    <el-descriptions-item label="距离搜索范围">
      {{ sourceObject.testDescriptionInfoVO?.searchRange }}
    </el-descriptions-item>
    <el-descriptions-item label="距离跟踪范围及精度">
      {{ sourceObject.testDescriptionInfoVO?.distanceTrackingRange }}
    </el-descriptions-item>
    <el-descriptions-item label="抗干压制/欺骗扰成功率">
      {{ sourceObject.testDescriptionInfoVO?.deceptionRate }}
    </el-descriptions-item>
    <el-descriptions-item label="脱靶量/命中率">
      {{ sourceObject.testDescriptionInfoVO?.missedHitRate }}
    </el-descriptions-item>

    <el-descriptions-item label="试验方式">
      {{ sourceObject.testDescriptionInfoVO?.testingMethod }}
    </el-descriptions-item>
    <el-descriptions-item label="试验数据处理方法">
      {{ sourceObject.testDescriptionInfoVO?.dataProcessMethod }}
    </el-descriptions-item>
    <el-descriptions-item label="试验数据记录方法">
      {{ sourceObject.testDescriptionInfoVO?.dataRecordMethod }}
    </el-descriptions-item>
    <el-descriptions-item label="试验结果">
      {{ sourceObject.testDescriptionInfoVO?.testingResult }}
    </el-descriptions-item>
  </el-descriptions>
</template>

<script lang="ts" setup>
import { ref, watch } from "vue";

const props = defineProps({
  title: { type: String, default: '数据处理前' },
  dealDataSources: {
    type: Object,
    default: () => {
      return {};
    },
  },
});

const sourceObject = ref<any>({})

watch(
  () => props.dealDataSources,
  (newValue, oldValue) => {
    sourceObject.value = newValue.staticPara;
  }
);


</script>

<style lang="scss" scoped>
:deep() {
  .el-descriptions__label {
    width: 150px;
    display: inline-block;
    text-align: right;
  }
  .el-descriptions__content {
    color: #000;
  }
}
</style>
